Limit the size of canvases to 5MP (iOS restriction)