working photo upload and resize. Fixed alerts and added bootstrap