Fixed issue with padding of photos