improved image gallery

Fixed:
- empty upload
- selection (On crop selection false.. Fix needed)
- avatar resize
- javascript loaded 2 times
- crop errors

Added:
- alert for blogimage if not cropped
- error handling

Sure i forget something.. Should be save now..

Signed-off-by: sgeef <stephan@teeuwendesign.nl>