make sure always delete locker file and limit image to 1mb