Refactor code for handling uploaded images
Extract layout for issue/edit and update/edit