fix image plugin bug with fit width and fit height resize methods