Fixed some issues with incorrect photo size