Creating cron job to automatically create thumbnail images and fixing an image upload bug for the admin portal