IMA_GPU_REFRESH is replaced by BKE_image_partial_update_mark_full_update and should not be used anymore.