added javascript needed to check if form actually contains a file before submiting
a litle addition to enable opening uploaded images in bigger view and later to download it