do not use pjax for upload page because pjax can not handle file uploads

fixes #363
fixed isImage check, fixes #364