fix image size fit for url-sourced image