Fix for adding images