changed default image logic