Move size detection error to check size before rendering since iOS does not throw an error when an image is too big.
Move size detection error to check size before rendering since iOS does not throw an error when an image is too big.

riuson/pannellum,mpetroff/pannellum,mpetroff/pannellum,Benvii/pannellum,eric-seekas/pannellum,riuson/pannellum,quentinyang/pannellum,Benvii/pannellum,riuson/pannellum,eric-seekas/pannellum,ywjrg/pannellum,riuson/pannellum,eric-seekas/pannellum,psteph801/psteph801.github.io,psteph801/psteph801.github.io,ywjrg/pannellum,ywjrg/pannellum,quentinyang/pannellum,Benvii/pannellum,mpetroff/pannellum,quentinyang/pannellum,eric-seekas/pannellum,Benvii/pannellum,mpetroff/pannellum,psteph801/psteph801.github.io,psteph801/psteph801.github.io,ywjrg/pannellum,quentinyang/pannellum