compute image reps