added thumbnails, web and original sizes for upload
added ajax script for upload popup
added main photo selection