supports rectangular source images