Improved student image edit functionality