Different method of calculating bitmap padding