add validation of php upload error
add alpha channel option on creating thumbnail