Image resources optimization