Photo thumbnail bugfix