Image Resize

- Implemented image resizing class.
- Wrote create_image() function to crop images and set file new image
file name.
- File type and file extension are now saved in the database.