Image mask/ratio by padding