Getting max size image to post and test images