Voting Image Gallery and Image Uploader in PHP, JavaScript