Fix created attribute for images