DRY image uploading using module for this job
Replace deprecated order scopes with new syntax in models