partial fix to resize photos