fix, slight optimization for images