Fixed a bug causing borders on photos to not draw correctly